<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <table border="1" cellspacing="0">
        <tr>
            <td>q</td>
            <td>q</td>
        </tr>
        <tr>
            <td>x</td>
            <td>x</td>
        </tr>
    </table>
    <script>
        var s = `
        <table border="1" spacing="0">
        <tr>
            <td>q</td>
            <td>q</td>
        </tr>
        <tr>
            <td>x</td>
            <td>x</td>
        </tr>
         </table>
                  `
    console.log(s);
    </script>
</body>

</html>